/* 主要内容区域 */
.content {
    padding: 20px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 120px);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题 */
.container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
}

.container h1 a {
    text-decoration: none;
    color: inherit;
}

.container h1 a:hover {
    color: #3498db;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文章项 */
.article-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 文章内容 */
.article-content {
    flex: 1;
}

.article-item h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.article-item h2 a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.article-item h2 a:hover {
    color: #3498db;
}

.desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 元数据 */
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 15px;
}

.meta span:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: #bbb;
}

.tag {
    display: inline-block;
    background-color: #e1f0fa;
    color: #3498db;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.tag:not(:last-child) {
    margin-right: 5px;
}

/* 功能按钮 */
.func {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.func a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 1rem;
    transition: background-color 0.3s;
}

/* 修改按钮样式 */
.func a.btn-update {
    background-color: #ff9900; /* 橙色背景 */
    color: white;
}

.func a.btn-update:hover {
    background-color: #cc7a00; /* 橙色背景（悬停状态） */
}

/* 删除按钮样式 */
.func a.btn-delete {
    background-color: #dc3545; /* 红色背景 */
    color: white;
}

.func a.btn-delete:hover {
    background-color: #c82333; /* 红色背景（悬停状态） */
}

/* 发布按钮样式 */
.func a.btn-add {
    background-color: #007bff; /* 蓝色背景 */
    color: white;
}

.func a.btn-add:hover {
    background-color: #0056b3; /* 蓝色背景（悬停状态） */
}


/* 右侧图片 */
.right {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.right img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.step-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.step-links a {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.step-links a:hover {
    background-color: #2980b9;
}

.current {
    padding: 8px 15px;
    color: #333;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .meta {
        flex-direction: column;
        gap: 5px;
    }

    .step-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .article-item {
        flex-direction: column;
    }

    .right {
        margin-left: 0;
        align-items: center;
        margin-top: 15px;
    }

    .right img {
        width: 100%;
        max-width: 200px;
    }

    .func {
        justify-content: center;
    }
}
